package com.cookiesoft.activity.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.cookiesoft.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cookiesoft.common.annotation.Excel;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 优惠券对象 zhen_coupons
 *
 * @author anc
 * @date 2024-11-06
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(resultMap = "com.cookiesoft.activity.mapper.ZhenCouponsMapper.ZhenCouponsResult")
public class ZhenCoupons extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 优惠券ID
     */
    private Long couponId;

    /**
     * 优惠券代码
     */
    @Excel(name = "优惠券代码")
    private String code;

    /**
     * 折扣金额
     */
    @Excel(name = "折扣金额")
    private BigDecimal discountAmount;

    /**
     * 关联的游戏类别ID
     */
    @Excel(name = "关联的游戏类别ID")
    private String categoryId;

    /**
     * 过期日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expirationDate;
    private String categoryName;

}
